home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / Triton / Developer / Autodocs / triton.doc
Encoding:
Text File  |  1998-02-03  |  50.2 KB  |  1,668 lines

  1. TABLE OF CONTENTS
  2.  
  3. triton.lib/TR_CloseTriton
  4. triton.lib/TR_OpenTriton
  5. triton.library/class_Button
  6. triton.library/class_CheckBox
  7. triton.library/class_Cycle
  8. triton.library/class_DisplayObject
  9. triton.library/class_DropBox
  10. triton.library/class_FrameBox
  11. triton.library/class_Group
  12. triton.library/class_Image
  13. triton.library/class_Line
  14. triton.library/class_Listview
  15. triton.library/class_Object
  16. triton.library/class_Palette
  17. triton.library/class_Progress
  18. triton.library/class_Scroller
  19. triton.library/class_Slider
  20. triton.library/class_Space
  21. triton.library/class_String
  22. triton.library/class_Text
  23. triton.library/TR_AddClass
  24. triton.library/TR_AreaFill
  25. triton.library/TR_AutoRequest
  26. triton.library/TR_CloseProject
  27. triton.library/TR_CloseWindowSafely
  28. triton.library/TR_CreateApp
  29. triton.library/TR_CreateMsg
  30. triton.library/TR_DeleteApp
  31. triton.library/TR_DoMethod
  32. triton.library/TR_DoMethodClass
  33. triton.library/TR_DrawFrame
  34. triton.library/TR_EasyRequest
  35. triton.library/TR_FirstOccurance
  36. triton.library/TR_FrameBorderHeight
  37. triton.library/TR_FrameBorderWidth
  38. triton.library/TR_GetAttribute
  39. triton.library/TR_GetErrorString
  40. triton.library/TR_GetLastError
  41. triton.library/TR_GetMsg
  42. triton.library/TR_GetPen
  43. triton.library/TR_LockProject
  44. triton.library/TR_LockScreen
  45. triton.library/TR_NumOccurances
  46. triton.library/TR_ObtainWindow
  47. triton.library/TR_OpenProject
  48. triton.library/TR_PrintText
  49. triton.library/TR_ReleaseWindow
  50. triton.library/TR_ReplyMsg
  51. triton.library/TR_SendMessage
  52. triton.library/TR_SetAttribute
  53. triton.library/TR_TextHeight
  54. triton.library/TR_TextWidth
  55. triton.library/TR_UnlockProject
  56. triton.library/TR_UnlockScreen
  57. triton.library/TR_Wait
  58. triton.lib/TR_CloseTriton                           triton.lib/TR_CloseTriton
  59.  
  60.    NAME    
  61.     TR_CloseTriton -- Closes Triton easily.
  62.  
  63.    SYNOPSIS
  64.     TR_CloseTriton()
  65.  
  66.     VOID TR_CloseTriton(VOID);
  67.  
  68.    FUNCTION
  69.     Closes the application created by OpenTriton()
  70.     and closes triton.library.
  71.  
  72.    SEE ALSO
  73.     TR_OpenTriton()
  74.  
  75. triton.lib/TR_OpenTriton                             triton.lib/TR_OpenTriton
  76.  
  77.    NAME    
  78.     TR_OpenTriton -- Opens Triton ready to use.
  79.  
  80.    SYNOPSIS
  81.     success = TR_OpenTriton(version, tag1,...)
  82.     D0
  83.  
  84.     BOOL TR_OpenTriton(ULONG, ULONG,...);
  85.  
  86.    FUNCTION
  87.     Opens triton.library with the specified minimum
  88.     version and creates an application.
  89.     The supplied tags are passed as a taglist to
  90.     TR_CreateApp().
  91.  
  92.    RESULT
  93.     success - Was everything opened successful?
  94.  
  95.    SEE ALSO
  96.     TR_CloseTriton(), TR_CreateApp()
  97.  
  98. triton.library/class_Button                       triton.library/class_Button
  99.  
  100.    NAME    
  101.     class_Button -- A BOOPSI button gadget
  102.  
  103.    SUPERCLASS
  104.     class_DisplayObject
  105.  
  106.    SYNOPSIS
  107.     TROB_Button
  108.  
  109.    ATTRIBUTES
  110.     <Default>        : ULONG buttontype
  111.                        - TRBT_TEXT         : Text button (default)
  112.                        - TRBT_GETFILE      : GetFile image button
  113.                        - TRBT_GETDRAWER    : GetDrawer image button
  114.                        - TRBT_GETENTRY     : GetEntry image button
  115.                        [create]
  116.     TRAT_Text        : STRPTR label
  117.                        [create]
  118.     TRAT_Flags       : ULONG flags
  119.                        - TRBU_RETURNOK     : Activated by <Return>
  120.                        - TRBU_ESCOK        : Activated by <Esc>
  121.                        - TRBU_SHIFTED      : Shifted shortcut only
  122.                        - TRBU_UNSHIFTED    : Unshifted shortcut only
  123.                        - TRBU_YRESIZE (V2) : When this flag is set, the
  124.                                              button will be vertically
  125.                                              resizeable. This is required
  126.                                              because beginning with V2
  127.                                              the height of objects which
  128.                                              are normally using the
  129.                                              button height can be
  130.                                              modified in the prefs
  131.                                              editor. Set this flags
  132.                                              WHEREVER POSSIBLE in order
  133.                                              to make buttons adopt to
  134.                                              taller objects in the same
  135.                                              horizontal group.
  136.                        [create]
  137.  
  138.    APPLICATION MESSAGES
  139.     TRMS_ACTION is sent when a pressed down button is released.
  140.  
  141.    NOTES
  142.     Although image buttons don't display a text string you can
  143.     still set one using the TRAT_Text attribute in order to create
  144.     a shortcut for the button.
  145.  
  146. triton.library/class_CheckBox                   triton.library/class_CheckBox
  147.  
  148.    NAME    
  149.     class_CheckBox -- A GadTools checkbox gadget
  150.  
  151.    SUPERCLASS
  152.     class_DisplayObject
  153.  
  154.    SYNOPSIS
  155.     TROB_CheckBox
  156.  
  157.    ATTRIBUTES
  158.     <Default>        : <unused>
  159.     TRAT_Value       : BOOL checked
  160.                        [create, set, get]
  161.  
  162.    APPLICATION MESSAGES
  163.     TRMS_NEWVALUE is sent when the checkbox has been toggled. trm_Data
  164.     contains 0 for an unselected checkbox and any other value for a
  165.     selected checkbox.
  166.  
  167. triton.library/class_Cycle                         triton.library/class_Cycle
  168.  
  169.    NAME    
  170.     class_Cycle -- A GadTools cycle gadget
  171.  
  172.    SUPERCLASS
  173.     class_DisplayObject
  174.  
  175.    SYNOPSIS
  176.     TROB_Cycle
  177.  
  178.    ATTRIBUTES
  179.     <Default>        : STRPTR *entries    : Gadget etry labels
  180.                        [create]
  181.     TRAT_Value       : ULONG number
  182.                        [create, set, get]
  183.     TRAT_Flags       : ULONG flags (V2)
  184.                        - TRCY_MX          : "Unfold" the cycle gadget to
  185.                                             a mutually exclusive gadget.
  186.                        - TRCY_RIGHTLABELS : Put the labels to the right
  187.                                             side (TRCY_MX only).
  188.                        [create]
  189.  
  190.    NOTES
  191.     Disabling TRCY_MX-style gadgets requires OS3.0 or better.
  192.  
  193.    APPLICATION MESSAGES
  194.     TRMS_NEWVALUE is sent when the selected entry has changed.
  195.     trm_Data contains the ordinal number of the new entry.
  196.  
  197. triton.library/class_DisplayObject         triton.library/class_DisplayObject
  198.  
  199.    NAME    
  200.     class_DisplayObject -- An abstract display object
  201.  
  202.    SUPERCLASS
  203.     class_Object
  204.  
  205.    SYNOPSIS
  206.     (TROB_DisplayObject)
  207.  
  208.    ATTRIBUTES
  209.     <Default>              : <unused>
  210.     TRAT_ID                : ULONG objectid
  211.                              [create, get]
  212.     TRAT_Disabled          : BOOL disabled
  213.                              [create, set, get]
  214.     TRDO_QuickHelpString   : STRPTR string
  215.                              [create, set, get]
  216.  
  217.    OBJECT MESSAGES
  218.     TROM_INSTALL           : Install an object at its place in a rastport
  219.     TROM_REMOVE            : Remove an installed object
  220.     TROM_SETATTRIBUTE      : Modify an attribute
  221.     TROM_GETATTRIBUTE      : Query an attribute
  222.     TROM_HIT               : Find an object from a pair of coordinates
  223.     (TROM_REFRESH)         : Refresh/redraw an object's on-screen
  224.                              representation
  225.     (TROM_EVENT)           : An IDCMP event has arrived
  226.     (TROM_DISABLED)        : Disable/ghost an object
  227.     (TROM_ENABLED)         : Enable an object again
  228.     (TROM_KEYDOWN)         : A key has been pressed down
  229.     (TROM_REPEATEDKEYDOWN) : A key is still pressed down
  230.     (TROM_KEYUP)           : A key has been released
  231.     (TROM_CANCELLED)       : A key press has been cancelled
  232.     (TROM_CREATECLASS)     : Create class-specific data
  233.     (TROM_DISPOSECLASS)    : Dispose of class-specific data
  234.  
  235. triton.library/class_DropBox                     triton.library/class_DropBox
  236.  
  237.    NAME    
  238.     class_DropBox -- An icon drop box
  239.  
  240.    SUPERCLASS
  241.     class_DisplayObject
  242.  
  243.    SYNOPSIS
  244.     TROB_DropBox
  245.  
  246.    ATTRIBUTES
  247.     <Default>        : <unused>
  248.  
  249. triton.library/class_FrameBox                   triton.library/class_FrameBox
  250.  
  251.    NAME    
  252.     class_FrameBox -- A framing box
  253.  
  254.    SUPERCLASS
  255.     class_DisplayObject (no attributes inherited)
  256.  
  257.    SYNOPSIS
  258.     TROB_FrameBox
  259.  
  260.    ATTRIBUTES
  261.     <Default>        : ULONG boxtype (V2)
  262.                          If no flag is set, unnamed boxes will
  263.                          be grouping and named ones framing.
  264.                        - TRFB_TEXT       : A text container
  265.                        - TRFB_GROUPING   : A grouping box
  266.                        - TRFB_FRAMING    : A framing box.
  267.                        [create]
  268.     TRAT_ID          : ULONG objectid (V2)
  269.                        [create]
  270.     TRAT_Backfill    : ULONG pattern
  271.                        [create, set]
  272.     TRAT_Text        : STRPTR label (V2)
  273.                        [create]
  274.     <other>          : <Child object>
  275.                        [create]
  276.  
  277. triton.library/class_Group                         triton.library/class_Group
  278.  
  279.    NAME    
  280.     class_Group -- A grouping object
  281.  
  282.    SUPERCLASS
  283.     class_DisplayObject
  284.  
  285.    SYNOPSIS
  286.     TRGR_Horiz
  287.     TRGR_Vert
  288.  
  289.    ATTRIBUTES
  290.     <Default>        : ULONG flags
  291.                        - TRGR_PROPSHARE  : Divide objects
  292.                                            proportionally
  293.                        - TRGR_EQUALSHARE : Divide objects equally
  294.                        - TRGR_PROPSPACES : Divide spaces
  295.                                            proportionally
  296.                        - TRGR_ARRAY      : Top group of an array. Lines
  297.                                            or culumns can be built
  298.                                            using TRGR_PROPSHARE groups.
  299.                                            At least one group must
  300.                                            be contained in an array.
  301.                        - TRGR_ALIGN      : Align resizable objects in
  302.                                            their secondary dimension
  303.                        - TRGR_CENTER     : Center non-resizable
  304.                                            objects in their secondary
  305.                                            dimension
  306.                        - TRGR_FIXHORIZ   : Don't allow horizontal
  307.                                            resizing
  308.                        - TRGR_FIXVERT    : Don't allow vertical
  309.                                            resizing
  310.                        - TRGR_INDEP (V2) : Group is independent of
  311.                                            surrounding array
  312.                        [create]
  313.     TRAT_ID          : ULONG objectid (V4)
  314.                        [create]
  315.     <other>          : Treated as elements of the group
  316.                        [create]
  317.     TRGR_End         : <unused> : Marks the end of the group
  318.                        [create]
  319.  
  320.    NOTES
  321.     An array group must contain at least one non-space object.
  322.  
  323. triton.library/class_Image                         triton.library/class_Image
  324.  
  325.    NAME    
  326.     class_Image -- An image (V2)
  327.  
  328.    SUPERCLASS
  329.     class_DisplayObject
  330.  
  331.    SYNOPSIS
  332.     TROB_Image
  333.  
  334.    ATTRIBUTES
  335.     <Default>        : <Image>
  336.                        [create]
  337.     TRAT_Flags       : ULONG flags
  338.                        - TRIM_BOOPSI : <Default> is a pointer to a
  339.                                        struct IClass BOOPSI image class.
  340.                        [create]
  341.     TRAT_MinWidth    : Minimum image width in pixels. Defaults to
  342.                        the image button height.
  343.                        [create, set]
  344.     TRAT_MinHeight   : Minimum image height in pixels. Defaults to
  345.                        the image button height.
  346.                        [create, set]
  347.  
  348. triton.library/class_Line                           triton.library/class_Line
  349.  
  350.    NAME    
  351.     class_Line -- A 3D line
  352.  
  353.    SUPERCLASS
  354.     class_DisplayObject
  355.  
  356.    SYNOPSIS
  357.     TROB_Line
  358.  
  359.    ATTRIBUTES
  360.     <Default>        : ULONG flags
  361.                        - TROF_HORIZ        : Horizontal line
  362.                                              (Overrides group dimension)
  363.                        - TROF_VERT         : Vertical line
  364.                                              (Overrides group dimension)
  365.                        - TROF_RAISED       : Raised line
  366.                        [create]
  367.  
  368. triton.library/class_Listview                   triton.library/class_Listview
  369.  
  370.    NAME
  371.     class_Listview -- A GadTools Listview gadget
  372.  
  373.    SUPERCLASS
  374.     class_DisplayObject
  375.  
  376.    SYNOPSIS
  377.     TROB_Listview
  378.  
  379.    ATTRIBUTES
  380.     <Default>        : struct List *entries
  381.                        [create, set]
  382.     TRAT_Flags       : ULONG flags
  383.                        - Listview type (mutually exclusive):
  384.                          - TRLV_READONLY     : A read-only list
  385.                          - TRLV_SELECT       : You may select an entry
  386.                          - TRLV_SHOWSELECTED : Show selected entry
  387.                        - TRLV_NOCURSORKEYS   : Don't use arrow keys
  388.                        - TRLV_NONUMPADKEYS   : Don't use keypad keys
  389.                        - TRLV_FWFONT         : Use the fixed-width font
  390.                        - TRLV_NOGAP (V2)     : Leave no gap below the
  391.                                                list but instead at the
  392.                                                end of the group.
  393.                        [create, set]
  394.     TRAT_Value       : ULONG selected        : Currently selected entry
  395.                                                (TRLV_SHOWSELECTED only)
  396.                        [create, set, get]
  397.     TRLV_Top         : ULONG top
  398.                        [create, set, get]
  399.     TRLV_VisibleLines: ULONG visiblelines    : Number of visible lines
  400.                        [get]
  401.     TRAT_MinWidth    : ULONG minwidth        : Minimum width
  402.                                                (Default: 10 characters)
  403.                        [create, set]
  404.     TRAT_MinHeight   : ULONG minheight       : Minimum height
  405.                                                (Default: 4 lines)
  406.                        [create, set]
  407.  
  408.    APPLICATION MESSAGES
  409.     'Select' listviews send TRMS_ACTION messages. 'ShowSelected' lists
  410.     send TRMS_NEWVALUE messages. trm_Data contains the ordinal number
  411.     of the selected entry. trm_Qualifier&IEQUALIFIER_REPEAT is set if
  412.     the user has double-clicked the specified listview entry.
  413.  
  414. triton.library/class_Object                       triton.library/class_Object
  415.  
  416.    NAME    
  417.     class_Object -- The abstract root class
  418.  
  419.    SUPERCLASS
  420.     <none>
  421.  
  422.    SYNOPSIS
  423.     (TROB_Object)
  424.  
  425.    ATTRIBUTES
  426.     <Default>        : <unused>
  427.  
  428.    OBJECT MESSAGES
  429.     TROM_NEW         : Create an instance
  430.     TROM_DISPOSE     : Dispose of an instance
  431.  
  432. triton.library/class_Palette                     triton.library/class_Palette
  433.  
  434.    NAME    
  435.     class_Palette -- A GadTools palette gadget
  436.  
  437.    SUPERCLASS
  438.     class_DisplayObject
  439.  
  440.    SYNOPSIS
  441.     TROB_Palette
  442.  
  443.    ATTRIBUTES
  444.     <Default>        : <unused>
  445.     TRAT_Value       : BOOL checked
  446.                        [create, set, get]
  447.  
  448.    APPLICATION MESSAGES
  449.     TRMS_NEWVALUE is sent when a new color has been selected. trm_Data
  450.     contains the pen number of the selected color.
  451.  
  452. triton.library/class_Progress                   triton.library/class_Progress
  453.  
  454.    NAME    
  455.     class_Progress -- A progress indicator
  456.  
  457.    SUPERCLASS
  458.     class_DisplayObject
  459.  
  460.    SYNOPSIS
  461.     TROB_Progress
  462.  
  463.    ATTRIBUTES
  464.     <Default>        : ULONG maximum
  465.                        [create, set]
  466.     TRAT_Flags       : ULONG orientation
  467.                        - TROF_HORIZ (default)
  468.                        - TROF_VERT
  469.                        [create, set]
  470.     TRAT_Value       : ULONG current
  471.                        [create, set, get]
  472.  
  473. triton.library/class_Scroller                   triton.library/class_Scroller
  474.  
  475.    NAME    
  476.     class_Scroller -- A GadTools scroller gadget
  477.  
  478.    SUPERCLASS
  479.     class_DisplayObject
  480.  
  481.    SYNOPSIS
  482.     TROB_Scroller
  483.  
  484.    ATTRIBUTES
  485.     <Default>        : ULONG flags
  486.                        - TROF_HORIZ (default)
  487.                        - TROF_VERT
  488.                        [create]
  489.     TRAT_Value       : WORD top
  490.                        [create, set, get]
  491.     TRSC_Total       : WORD total
  492.                        [create, set, get]
  493.     TRSC_Visible     : WORD visible
  494.                        [create, set, get]
  495.  
  496.    APPLICATION MESSAGES
  497.     TRMS_NEWVALUE is sent when TRAT_Value changes. trm_Data contains
  498.     the new value.
  499.  
  500. triton.library/class_Slider                       triton.library/class_Slider
  501.  
  502.    NAME    
  503.     class_Slider -- A GadTools slider gadget
  504.  
  505.    SUPERCLASS
  506.     class_DisplayObject
  507.  
  508.    SYNOPSIS
  509.     TROB_Slider
  510.  
  511.    ATTRIBUTES
  512.     <Default>        : ULONG flags
  513.                        - TROF_HORIZ (default)
  514.                        - TROF_VERT
  515.                        [create]
  516.     TRAT_Value       : WORD level
  517.                        [create, set, get]
  518.     TRSL_Min         : WORD min
  519.                        [create]
  520.     TRSL_Max         : WORD max
  521.                        [create]
  522.  
  523.    APPLICATION MESSAGES
  524.     TRMS_NEWVALUE is sent when TRAT_Value changes. trm_Data contains
  525.     the new value.
  526.  
  527. triton.library/class_Space                         triton.library/class_Space
  528.  
  529.    NAME    
  530.     class_Space -- A class of spaces with various sizes
  531.  
  532.    SUPERCLASS
  533.     class_DisplayObject
  534.  
  535.    SYNOPSIS
  536.     TROB_Space
  537.  
  538.    ATTRIBUTES
  539.     <Default>        : ULONG spacetype
  540.                        - TRST_NONE         : No space
  541.                        - TRST_SMALL        : Small space
  542.                        - TRST_NORMAL       : Normal space (default)
  543.                        - TRST_BIG          : Big space
  544.                        [create]
  545.  
  546. triton.library/class_String                       triton.library/class_String
  547.  
  548.    NAME    
  549.     class_String -- A GadTools string gadget
  550.  
  551.    SUPERCLASS
  552.     class_DisplayObject
  553.  
  554.    SYNOPSIS
  555.     TROB_String
  556.  
  557.    ATTRIBUTES
  558.     <Default>        : STRPTR string
  559.                        [create, set, get]
  560.     TRAT_Value       : UWORD maxchars (default: 64)
  561.                        [create]
  562.     TRST_Filter      : STRPTR filter: Only characters in this string will
  563.                        be accepted if present, otherwise all characters
  564.                        are allowed.
  565.                        [create]
  566.     TRAT_Flags       : ULONG flags
  567.                        - TRST_INVISIBLE         : Invisible typing
  568.                        - TRST_NORETURNBROADCAST : Don't broadcast <Return>
  569.                                                   key presses to the window.
  570.                        - TRST_FLOAT             : Only one "." or "," symbol
  571.                                                   is accepted.
  572.                        [create]
  573.  
  574.    APPLICATION MESSAGES
  575.     TRMS_NEWVALUE is sent when <Return> has been pressed in an activated
  576.     string gadget. trm_Data contains a pointer to the new string and is
  577.     only valid as long as the object exists. It is advised that you do not
  578.     check for TRMS_NEWVALUE messages but instead read the current string
  579.     using TR_GetAttribute() when you need it.
  580.  
  581.    OBJECT MESSAGES
  582.     TROM_ACTIVATE    : Activate the string gadget.
  583.  
  584. triton.library/class_Text                           triton.library/class_Text
  585.  
  586.    NAME    
  587.     class_Text -- A line of text / A value
  588.  
  589.    SUPERCLASS
  590.     class_DisplayObject
  591.  
  592.    SYNOPSIS
  593.     TROB_Text
  594.  
  595.    ATTRIBUTES
  596.     <Default>        : <unused>
  597.     TRAT_Text        : STRPTR text
  598.                        [create, set]
  599.     TRAT_Value       : ULONG number
  600.                        [create, set]
  601.     TRAT_MinWidth    : ULONG number_of_average_chars
  602.                        [create]
  603.     TRAT_Flags       : ULONG flags
  604.                        - TRTX_NOUNDERSCORE    : Don't interpret underscores
  605.                        - TRTX_HIGHLIGHT       : Highlight text
  606.                        - TRTX_3D              : Highlight with shadows
  607.                        - TRTX_BOLD            : Bold text
  608.                        - TRTX_TITLE           : Use this for titles (e.g.
  609.                                                 of separator bars).
  610.                        - TRTX_RIGHTALIGN (V6) : Align text to the right border
  611.                        - TRTX_CENTER (V6)     : Center text
  612.                        - TRTX_CLIPPED (V4)    : Text is resizable in X
  613.                                                 direction. Text which
  614.                                                 exceeds the available
  615.                                                 space will be truncated.
  616.                        - TRTX_MULTILINE (V6)  : See TR_PrintText() autodoc
  617.                                                 clip for details
  618.                        [create]
  619.  
  620.    NOTES
  621.     TRTX_CLIPPED is mutually exclusive with TRTX_MULTILINE and TRTX_RIGHTALIGN.
  622.     Non-clipped texts (and especially multi-line texts) should not be changed.
  623.     Clipping is not possible when TRAT_MinWidth is specified.
  624.  
  625.    SEE ALSO
  626.     TR_PrintText()
  627.  
  628. triton.library/TR_AddClass                         triton.library/TR_AddClass
  629.  
  630.    NAME    
  631.     TR_AddClass -- Add a class to Triton's class management. (V6)
  632.  
  633.    SYNOPSIS
  634.     Success = TR_AddClass(Application, Tag, SuperTag,
  635.                           A1           D0   D1
  636.                           DefaultMethod, DataSize, Tags)
  637.                           A2             D2        A0
  638.  
  639.     BOOL TR_AddClass(struct TR_App *, ULONG, ULONG, TR_Method,
  640.                      struct TR_Class *, struct TagItem *);
  641.  
  642.    FUNCTION
  643.     Add a class to Triton's class management. Objects of the class
  644.     may then be used in TR_OpenProject(). You don't have to remove
  645.     the classes. This is done automatically when the application
  646.     is deleted.
  647.  
  648.    RESULT
  649.     Success - FALSE if the class couldn't be initialized.
  650.  
  651. triton.library/TR_AreaFill                         triton.library/TR_AreaFill
  652.  
  653.    NAME    
  654.     TR_AreaFill -- Draw a background pattern
  655.  
  656.    SYNOPSIS
  657.     TR_AreaFill(Project, RastPort, Left, Top, Right, Bottom,
  658.                 A0       A1        D0    D1   D2     D3
  659.                 Type, Dummy)
  660.                 D4    A2
  661.  
  662.     VOID TR_AreaFill(struct TR_Project *, struct RastPort *,
  663.                      ULONG, ULONG, ULONG, ULONG, ULONG, VOID *);
  664.  
  665.    FUNCTION
  666.     Fill an area with one of Triton's default backfill patterns.
  667.     The "Type" argument is a code from the TR_Images enumeration.
  668.     "Dummy" is currently unused and should be set to NULL. If
  669.     the RastPort is not specified (NULL) the project's default
  670.     RastPort will be used.
  671.  
  672. triton.library/TR_AutoRequest                   triton.library/TR_AutoRequest
  673.  
  674.    NAME    
  675.     TR_AutoRequest -- A (relatively ;-) low-level requester function.
  676.  
  677.    SYNOPSIS
  678.     selection = TR_AutoRequest(App, Project, TagList)
  679.     D0                         A1   A0       A2
  680.  
  681.     ULONG TR_AutoRequest(struct TR_App *, struct TR_Project *,
  682.                          struct AppItem *);
  683.  
  684.     selection = TR_AutoRequestTags(App, Project, Tag,...)
  685.     D0
  686.  
  687.     ULONG TR_AutoRequestTags(struct TR_App *, struct TR_Project *,
  688.                          struct AppItem *);
  689.  
  690.    FUNCTION
  691.     Pops up a requester which is described by the supplied tag list.
  692.     As soon as a TRMS_ACTION message is sent by one of the objects,
  693.     the requester will close. If a project is supplied, it will be
  694.     locked when opening the requester and unlocked when closing it.
  695.  
  696.    RESULT
  697.     selection - The ID of the object which triggered the action,
  698.                 0 for an error, (ULONG)(-1) for the close gadget.
  699.  
  700.    NOTES
  701.     Simple requesters with just text and buttons can be done easier
  702.     with TR_EasyRequest(). If you need more complex requesters, you
  703.     have to use your own message polling loop instead of
  704.     TR_AutoRequest(). You may still use the requester macros though.
  705.  
  706.    SEE ALSO
  707.     TR_EasyRequest()
  708.  
  709. triton.library/TR_CloseProject                 triton.library/TR_CloseProject
  710.  
  711.    NAME    
  712.     TR_CloseProject -- Closes a project/window.
  713.  
  714.    SYNOPSIS
  715.     TR_CloseProject(Project)
  716.                     A0
  717.  
  718.     VOID TR_CloseProject(struct TR_Project *);
  719.  
  720.    FUNCTION
  721.     Closes a Triton project.
  722.  
  723.    SEE ALSO
  724.     TR_OpenProject()
  725.  
  726. triton.library/TR_CloseWindowSafely       triton.library/TR_CloseWindowSafely
  727.  
  728.    NAME    
  729.     TR_CloseWindowSafely -- Closes as window with a shared IDCMP port.
  730.  
  731.    SYNOPSIS
  732.     TR_CloseWindowSafely(Window)
  733.                          A0
  734.  
  735.     VOID TR_CloseWindowSafely(struct Window *);
  736.  
  737.    FUNCTION
  738.     Closes a window which shares its IDCMP port with another window.
  739.     All the pending messages (concerning this window) on the port
  740.     will be removed and the window will be closed.
  741.     
  742.     Do *NOT* use this function to close windows which have an IDCMP
  743.     port set up by Intuition. If you do the port will be left in memory!
  744.     
  745.     If you intend to open a lot of windows all sharing the same IDCMP
  746.     port it is easiest if you create a port yourself and open all
  747.     windows with newwin.IDCMPFlags set to 0 (this tells Intuition NOT to
  748.     set up an IDCMP port). After opening the window set win->UserPort
  749.     to your message port and call ModifyIDCMP() to set your IDCMP flags.
  750.     
  751.     When you then receive messages from Intuition check their
  752.     imsg->IDCMPWindow field to find out what window they came from
  753.     and act upon them.
  754.     
  755.     When closing your windows call TR_CloseWindowSafely() for all of
  756.     them and delete your message port.
  757.  
  758.    INPUTS
  759.     Window - pointer to the window to be closed.
  760.  
  761.    NOTE
  762.     This function is for the advanced Triton user.
  763.  
  764.    SEE ALSO
  765.     intuition.library/CloseWindow()
  766.  
  767. triton.library/TR_CreateApp                       triton.library/TR_CreateApp
  768.  
  769.    NAME    
  770.     TR_CreateApp -- Creates a Triton application.
  771.     TR_CreateAppTags -- Varargs stub for TR_CreateApp.
  772.  
  773.    SYNOPSIS
  774.     app = TR_CreateApp(TagList)
  775.     D0                 A1
  776.  
  777.     struct TR_App * TR_CreateApp(struct TagItem *);
  778.  
  779.     app = TR_CreateAppTags(Tag1,...)
  780.  
  781.     struct TR_App * TR_CreateApp(ULONG,...);
  782.  
  783.    FUNCTION
  784.     Creates an application. An application is required
  785.     for opening windows and polling messages. All projects
  786.     of an application will share one IDCMP port and one
  787.     memory pool.
  788.  
  789.    TAGS
  790.     TRCA_Name        - (STRPTR)
  791.                        Unique name for the application. Must not be
  792.                        longer than 20 characters. Case-insensitive.
  793.                        ' ', '/', '.' and ':' are not allowed.
  794.     TRCA_LongName    - (STRPTR)
  795.                        A user-readable name for the application.
  796.                        Up to 60 characters allowed.
  797.     TRCA_Info        - (STRPTR)
  798.                        Information about the application. Should not
  799.                        be more than 2 lines with 60 characters each.
  800.     TRCA_Version     - (STRPTR)
  801.                        Internal version of the application.
  802.     TRCA_Release     - (STRPTR)
  803.                        Release number of the application.
  804.     TRCA_Date        - (STRPTR)
  805.                        Creation/compilation date. Should be given
  806.                        in standard version string format.
  807.     
  808.     Example:
  809.       Name        : DilloCreate
  810.       LongName    : Armadillo Creator
  811.       Info        : Part of the Armadillo Management System.
  812.                     Â© 1994 by DilloWorks Enterprises.
  813.       Version     : 42.135
  814.       Release     : 2.1bß3
  815.       Date        : 17.6.94
  816.  
  817.    RESULT
  818.     app - A pointer to the created application structure.
  819.           NULL indicates failure.
  820.  
  821.    SEE ALSO
  822.     TR_DeleteApp()
  823.  
  824. triton.library/TR_CreateMsg                       triton.library/TR_CreateMsg
  825.  
  826.    NAME    
  827.     TR_CreateMsg -- Create an application message. (V6)
  828.  
  829.    SYNOPSIS
  830.     message = TR_CreateMsg(App)
  831.     D0                     A1
  832.  
  833.     struct TR_Message * TR_CreateMsg(struct TR_App *);
  834.  
  835.    FUNCTION
  836.     Creates an empty message to be filled in by a custom
  837.     class which wants to send a user message. The message
  838.     is automatically added to the application's message
  839.     queue (which is emptied by user-level calls to
  840.     TR_GetMsg()). The trm_App field of the message is
  841.     initialized to the supplied app. When called within
  842.     a method which is invoked by TR_GetMsg() (i.e. an
  843.     event-handling method) trm_Project, trm_Seconds,
  844.     trm_Micros and trm_Qualifier are also initialized.
  845.  
  846.    SEE ALSO
  847.     TR_GetMsg(), TR_ReplyMsg()
  848.  
  849. triton.library/TR_DeleteApp                       triton.library/TR_DeleteApp
  850.  
  851.    NAME    
  852.     TR_DeleteApp -- Deletes a Triton application.
  853.  
  854.    SYNOPSIS
  855.     TR_DeleteApp(App)
  856.                  A1
  857.  
  858.     VOID TR_DeleteApp(struct TR_App *);
  859.  
  860.    FUNCTION
  861.     Deletes an application created by TR_CreateApp().
  862.  
  863.    NOTES
  864.     All windows have to be closed before deleting the
  865.     corresponding application!
  866.  
  867.    SEE ALSO
  868.     TR_CreateApp()
  869.  
  870. triton.library/TR_DoMethod                         triton.library/TR_DoMethod
  871.  
  872.    NAME    
  873.     TR_DoMethod -- Dispatch a method. (V6)
  874.  
  875.    SYNOPSIS
  876.     Result = TR_DoMethod(Object, MessageID, Data)
  877.                          A0      D0         A1
  878.  
  879.     ULONG TR_DoMethod(struct TROD_Object *, ULONG, APTR);
  880.  
  881.    FUNCTION
  882.     Dispatch a method to an object.
  883.  
  884.    RESULT
  885.     Depends on the class and method being called.
  886.  
  887.    SEE ALSO
  888.     TR_DoMethodClass()
  889.  
  890. triton.library/TR_DoMethodClass               triton.library/TR_DoMethodClass
  891.  
  892.    NAME    
  893.     TR_DoMethodClass -- Dispatch a method through a meta-class. (V6)
  894.  
  895.    SYNOPSIS
  896.     Result = TR_DoMethodClass(Object, MessageID, Data, Class)
  897.                               A0      D0         A1    A2
  898.  
  899.     ULONG TR_DoMethodClass(struct TROD_Object *, ULONG, APTR,
  900.                            struct TR_Class *);
  901.  
  902.    FUNCTION
  903.     Dispatch a method to an object as if the object was of the
  904.     specified class.
  905.  
  906.    RESULT
  907.     Depends on the class and method being called.
  908.  
  909.    SEE ALSO
  910.     TR_DoMethod()
  911.  
  912. triton.library/TR_DrawFrame                       triton.library/TR_DrawFrame
  913.  
  914.    NAME    
  915.     TR_DrawFrame -- Draws a frame/BevelBox. (V6)
  916.  
  917.    SYNOPSIS
  918.     TR_DrawFrame(Project, RastPort, Left, Top, Width,
  919.                  A0       A1        D1    D2   D3
  920.                  Height, Type, Inverted)
  921.                  D4      D0    D5
  922.  
  923.     VOID TR_DrawFrame(struct TR_Project *,
  924.                       struct RastPort *, UWORD, UWORD,
  925.                       UWORD, UWORD, UWORD, BOOL);
  926.  
  927.    FUNCTION
  928.     Draws a frame into the specified RastPort (or into
  929.     the project's default RastPort if the supplied RastPort
  930.     is NULL. Set Inverted to TRUE for a recessed (basic) or
  931.     inverted (abstract) frame.
  932.  
  933.    SEE ALSO
  934.     TR_FrameBorderWidth(), TR_FrameBorderHeight()
  935.  
  936. triton.library/TR_EasyRequest                   triton.library/TR_EasyRequest
  937.  
  938.    NAME    
  939.     TR_EasyRequest -- A high-level requester function.
  940.  
  941.    SYNOPSIS
  942.     selection = TR_EasyRequest(App, BodyFmt, GadFmt, TagList)
  943.     D0                         A1   A2       A3      A0
  944.  
  945.     ULONG TR_EasyRequest(struct TR_App *, STRPTR, STRPTR, struct TagItem *);
  946.  
  947.     selection = TR_EasyRequestTags(App, BodyFmt, GadFmt, Tag,...)
  948.     D0
  949.  
  950.     ULONG TR_EasyRequestTags(struct TR_App *, STRPTR, STRPTR, ULONG,...);
  951.  
  952.    FUNCTION
  953.     Pops up a requester and waits for the user to select a gadget.
  954.  
  955.    INPUTS
  956.     App       - A valid Triton application.
  957.     BodyFmt   - A multi-line text which will be displayed in the
  958.                 requester body. See TR_PrintText() autodoc clip
  959.                 for details about the formatting sequences.
  960.     GadFmt    - The gadget texts, separated by '|'.
  961.     TagList   - Pointer to a TagItem array.
  962.  
  963.    TAGS
  964.     TREZ_ReqPos (ULONG) - The requester's position (TRWP_...).
  965.         The default is TRWP_MOUSEPOINTER.
  966.  
  967.     TREZ_LockProject (struct TR_Project *) - This project will be
  968.         locked while the requester is displayed. Information about
  969.         screen and activity state of the requester are taken from
  970.         this project.
  971.  
  972.     TREZ_Return (ULONG) - Number of the default gadget which can be
  973.         activated by <RETURN>. Defaults to 1 (0 in a single-gadget
  974.         requester).
  975.  
  976.     TREZ_Title (STRPTR) - Requester window title. Default is "System
  977.         request" (or a localized version under OS2.1 and higher).
  978.  
  979.     TREZ_Activate (BOOL) - If this tag is supplied, the activity
  980.         state of the requester window will be taken from this tag's
  981.         argument instead of being inherited from the locked project
  982.         (if applicable).
  983.  
  984.     TRWI_PubScreen (struct Screen *) - A public screen on which the
  985.         window will be opened. The screen *must* have been locked.
  986.  
  987.     TRWI_PubScreenName (STRPTR) - A public screen on which the window
  988.         will be opened. Triton will try to lock the screen with the
  989.         specified name. It will fall back onto the default public
  990.         screen in case the screen can't be found/locked.
  991.  
  992.    RESULT
  993.     selection - The number of the selected gadget. The gadgets are
  994.                 numbered from left to right beginning with 1. The
  995.                 rightmost gadget (or the only gadget in a 1-gadget
  996.                 requester) has got number 0. (ULONG)(-1) is returned
  997.                 for indicating an error.
  998.  
  999.    SEE ALSO
  1000.     TR_AutoRequest(), TR_PrintText()
  1001.  
  1002. triton.library/TR_FirstOccurance             triton.library/TR_FirstOccurance
  1003.  
  1004.    NAME    
  1005.     TR_FirstOccurance -- Finds a character in a string.
  1006.  
  1007.    SYNOPSIS
  1008.     Position = TR_FirstOccurance(Character, String)
  1009.     D0                           D0         A0
  1010.  
  1011.     LONG TR_FirstOccurance(UBYTE, STRPTR);
  1012.  
  1013.    FUNCTION
  1014.     Finds the specified character in the string.
  1015.  
  1016.    RESULT
  1017.     Position - The position of the first occurance of the
  1018.     character in the string or -1 if the character couldn't
  1019.     be found in the string.
  1020.  
  1021. triton.library/TR_FrameBorderHeight       triton.library/TR_FrameBorderHeight
  1022.  
  1023.    NAME    
  1024.     TR_FrameBorderHeight -- Returns frame border height. (V6)
  1025.  
  1026.    SYNOPSIS
  1027.     Height = TR_FrameBorderHeight(Project, Type)
  1028.                                   A0       D0
  1029.  
  1030.     ULONG TR_FrameBorderHeight(struct TR_Project *, UWORD);
  1031.  
  1032.    FUNCTION
  1033.     Returns the thickness of the top/bottom borders of the
  1034.     specified frame type (TRFT_#?) in a specific project
  1035.     taking into account the user's preferences settings.
  1036.  
  1037.    RESULT
  1038.     Height - The height of the borders in pixels
  1039.  
  1040.    SEE ALSO
  1041.     TR_FrameBorderWidth(), TR_DrawFrame()
  1042.  
  1043. triton.library/TR_FrameBorderWidth         triton.library/TR_FrameBorderWidth
  1044.  
  1045.    NAME    
  1046.     TR_FrameBorderWidth -- Returns frame border width. (V6)
  1047.  
  1048.    SYNOPSIS
  1049.     Width = TR_FrameBorderWidth(Project, Type)
  1050.                                 A0       D0
  1051.  
  1052.     ULONG TR_FrameBorderWidth(struct TR_Project *, UWORD);
  1053.  
  1054.    FUNCTION
  1055.     Returns the thickness of the left/right borders of the
  1056.     specified frame type (TRFT_#?) in a specific project
  1057.     taking into account the user's preferences settings.
  1058.  
  1059.    RESULT
  1060.     Width - The width of the borders in pixels
  1061.  
  1062.    SEE ALSO
  1063.     TR_FrameBorderHeight(), TR_DrawFrame()
  1064.  
  1065. triton.library/TR_GetAttribute                 triton.library/TR_GetAttribute
  1066.  
  1067.    NAME    
  1068.     TR_GetAttribute -- Gets an attribute of an object.
  1069.  
  1070.    SYNOPSIS
  1071.     value = TR_GetAttribute(Project, ID, Attribute)
  1072.     D0                      A0       D0  D1
  1073.  
  1074.     ULONG TR_GetAttribute(struct TR_Project *, ULONG,
  1075.                           ULONG);
  1076.  
  1077.    FUNCTION
  1078.     Gets an attribute of a Triton object. Only attributes
  1079.     of objects with an ID can be queried.
  1080.  
  1081.    RESULT
  1082.     value - Value of the specified attribute. Depends
  1083.             on specific class and attribute.
  1084.  
  1085.    SEE ALSO
  1086.     Class descriptions, TR_SetAttribute()
  1087.  
  1088. triton.library/TR_GetErrorString             triton.library/TR_GetErrorString
  1089.  
  1090.    NAME    
  1091.     TR_GetErrorString -- Creates an error message
  1092.  
  1093.    SYNOPSIS
  1094.     Message = TR_GetErrorString(Number)
  1095.     D0                          D0
  1096.  
  1097.     STRPTR TR_GetErrorString(UWORD);
  1098.  
  1099.    FUNCTION
  1100.     Creates an error message which matches the supplied
  1101.     Triton error code.
  1102.  
  1103.    INPUTS
  1104.     Number - Triton error code. In most cases you will
  1105.              get this with TR_GetLastError().
  1106.  
  1107.    RESULT
  1108.     Message - Pointer to a user-readable error message
  1109.               or an empty string ("") if none available.
  1110.  
  1111.    BUGS
  1112.     In older Triton versions, TR_GetErrorString() did
  1113.     return NULL instead of an empty string. This is
  1114.     fixed in V4.
  1115.  
  1116.    SEE ALSO
  1117.     TR_GetLastError()
  1118.  
  1119. triton.library/TR_GetLastError                 triton.library/TR_GetLastError
  1120.  
  1121.    NAME    
  1122.     TR_GetLastError -- Gets the last error code
  1123.  
  1124.    SYNOPSIS
  1125.     Number = TR_GetLastError(App)
  1126.     D0                       A1
  1127.  
  1128.     UWORD TR_GetLastError(struct TR_App *);
  1129.  
  1130.    FUNCTION
  1131.     Returns the TRER code of the last error which occured
  1132.     in the application and sets the internal tra_LastError
  1133.     back to TRER_OK.
  1134.  
  1135.    INPUTS
  1136.     App - Pointer to a Triton Application
  1137.  
  1138.    RESULT
  1139.     Number - TRER error code
  1140.  
  1141.    SEE ALSO
  1142.     TR_GetErrorString()
  1143.  
  1144. triton.library/TR_GetMsg                             triton.library/TR_GetMsg
  1145.  
  1146.    NAME    
  1147.     TR_GetMsg -- Gets a Triton message.
  1148.  
  1149.    SYNOPSIS
  1150.     message = TR_GetMsg(App)
  1151.     D0                  A1
  1152.  
  1153.     struct TR_Message * TR_GetMsg(struct TR_App *);
  1154.  
  1155.    FUNCTION
  1156.     Gets a message from a Triton application created
  1157.     by TR_CreateApp(). You may first want to wait for
  1158.     a message with TR_Wait().
  1159.  
  1160.    NOTES
  1161.     Please reply all messages as quickly as possible
  1162.     with TR_ReplyMsg(). Shutting down an application
  1163.     does not free unreplied messages and resources
  1164.     which are attached to them (like AppMessages).
  1165.  
  1166.    SEE ALSO
  1167.     TR_ReplyMsg(), TR_Wait(), TR_CreateMsg()
  1168.  
  1169. triton.library/TR_GetPen                             triton.library/TR_GetPen
  1170.  
  1171.    NAME    
  1172.     TR_GetPen -- Returns a pen number. (V6)
  1173.  
  1174.    SYNOPSIS
  1175.     Pen = TR_GetPen(Project, PenType, PenData)
  1176.                     A0       D0       D1
  1177.  
  1178.     ULONG TR_GetPen(struct TR_Project *, ULONG, ULONG);
  1179.  
  1180.    FUNCTION
  1181.     Returns the pen specified by PenType and PenData.
  1182.  
  1183.    RESULT
  1184.     Pen - The number of the requested pen
  1185.  
  1186. triton.library/TR_LockProject                   triton.library/TR_LockProject
  1187.  
  1188.    NAME    
  1189.     TR_LockProject -- Locks a Triton project.
  1190.  
  1191.    SYNOPSIS
  1192.     TR_LockProject(Project)
  1193.                    A0
  1194.  
  1195.     VOID TR_LockProject(struct TR_Project *);
  1196.  
  1197.    FUNCTION
  1198.     Locks a Triton project. Only window resizing will
  1199.     still work in a locked project. All other kinds of
  1200.     input (i.e. all input which requires interaction
  1201.     by your program and not only by Triton) are not
  1202.     possible.
  1203.  
  1204.    SEE ALSO
  1205.     TR_UnlockProject()
  1206.  
  1207. triton.library/TR_LockScreen                     triton.library/TR_LockScreen
  1208.  
  1209.    NAME    
  1210.     TR_LockScreen -- Get a project's screen
  1211.  
  1212.    SYNOPSIS
  1213.     screen = TR_LockScreen(Project)
  1214.     D0                     A0
  1215.  
  1216.     struct Screen * TR_LockScreen(struct TR_Project *);
  1217.  
  1218.    FUNCTION
  1219.     Lock the screen of a Triton project for use with non-Triton
  1220.     windows (e.g. for opening a file requester on the screen of a
  1221.     Triton application). The screen must be unlocked later with
  1222.     TR_UnlockScreen(). Locking/unlocking calls are nested.
  1223.  
  1224.    RESULT
  1225.     screen - Pointer to the project's screen or NULL to indicate an
  1226.              error. In this case the application should *not* abort,
  1227.              but *quietly* use another screen (preferably the
  1228.              Workbench screen) instead.
  1229.  
  1230.    SEE ALSO
  1231.     TR_UnlockScreen()
  1232.  
  1233. triton.library/TR_NumOccurances               triton.library/TR_NumOccurances
  1234.  
  1235.    NAME    
  1236.     TR_NumOccurances -- Counts a character in a string.
  1237.  
  1238.    SYNOPSIS
  1239.     Number = TR_NumOccurances(Character, String)
  1240.     D0                        D0         A0
  1241.  
  1242.     LONG TR_NumOccurances(UBYTE, STRPTR);
  1243.  
  1244.    FUNCTION
  1245.     Counts the number of occurances of the character in the string.
  1246.  
  1247.    RESULT
  1248.     Number - The number of matching characters found.
  1249.  
  1250. triton.library/TR_ObtainWindow                 triton.library/TR_ObtainWindow
  1251.  
  1252.    NAME    
  1253.     TR_ObtainWindow -- Get a project's window. (V3)
  1254.  
  1255.    SYNOPSIS
  1256.     window = TR_ObtainWindow(Project)
  1257.     D0                       A0
  1258.  
  1259.     struct Window * TR_ObtainWindow(struct TR_Project *);
  1260.  
  1261.    FUNCTION
  1262.     Lock the window of a Triton project for non-Triton window
  1263.     operations (e.g. activating a window or bringing it to the
  1264.     front). Do not manipulate the contents of Triton windows!
  1265.     Locked windows must be freed again with TR_UnlockWindow().
  1266.     Locking/unlocking calls are nested.
  1267.  
  1268.    RESULT
  1269.     window - Pointer to the project's Window. A value of NULL should
  1270.              be quietly ignored. NULL simply indicates that there is
  1271.              currently no window available.
  1272.  
  1273.    SEE ALSO
  1274.     TR_UnlockWindow()
  1275.  
  1276. triton.library/TR_OpenProject                   triton.library/TR_OpenProject
  1277.  
  1278.    NAME    
  1279.     TR_OpenProject -- Opens a project/window.
  1280.     TR_OpenProjectTags -- Varargs stub for TR_OpenProject.
  1281.  
  1282.    SYNOPSIS
  1283.     Project = TR_OpenProject(App, TagItems)
  1284.     D0                       A1   A0
  1285.  
  1286.     struct TR_Project *TR_OpenProject(struct TR_App *,
  1287.                                       struct TagItem *);
  1288.  
  1289.     Project = TR_OpenProjectTags(App, Tag1,...)
  1290.  
  1291.     struct TR_Project *TR_OpenProjectTags(struct TR_App *,
  1292.                                           ULONG,...);
  1293.  
  1294.    FUNCTION
  1295.     Opens a Triton project. The supplied taglist may contain
  1296.     window tags, menu tags and object tags (in that order).
  1297.     Mutually exclusive menus are not yet supported. When creating
  1298.     a menu item with an ID, TRAT_ID must be the *last* tag.
  1299.     A valid application pointer must be supplied.
  1300.  
  1301.    INPUTS
  1302.     App = Valid application pointer
  1303.     TagItems = List of tags describing the project
  1304.  
  1305.    TAGS
  1306.     The taglist may contain window tags, menu tags and object tags
  1307.     (in that order!). The following list shows the window and menu
  1308.     tags. See the class descriptions for the object tags.
  1309.  
  1310.     TRWI_Title (STRPTR) - The window title (changeable)
  1311.  
  1312.     TRWI_ScreenTitle (STRPTR) - The screen title (changeable) (V2)
  1313.  
  1314.     TRWI_Flags (ULONG) - The Triton window flags:
  1315.     - TRWF_BACKDROP        : Create a backdrop borderless window
  1316.                              in full screen size
  1317.     - TRWF_NODRAGBAR       : No dragging bar
  1318.     - TRWF_NODEPTHGADGET   : No depth arranging gadget
  1319.     - TRWF_NOCLOSEGADGET   : No close gadget
  1320.     - TRWF_NOACTIVATE      : Don't activate window
  1321.     - TRWF_NOESCCLOSE      : Don't send TRMS_CLOSEWINDOW when
  1322.                              Esc is pressed
  1323.     - TRWF_NOPSCRFALLBACK  : Don't fall back onto default PubScreen
  1324.     - TRWF_NOZIPGADGET     : No zip/zoom gadget
  1325.     - TRWF_ZIPCENTERTOP    : Center zipped window on screen title bar
  1326.     - TRWF_NOMINTEXTWIDTH  : Window title text length doesn't count
  1327.                              for window size calculation
  1328.     - TRWF_NOSIZEGADGET    : No size gadget
  1329.     - TRWF_NOFONTFALLBACK  : Don't fall back to topaz/8
  1330.     - TRWF_NODELZIP        : Don't zip the window when Del is pressed
  1331.     - TRWF_SIMPLEREFRESH   : Use simple instead of smart refresh. (V1)
  1332.                              This flag is *obsolete* in V3+!
  1333.                              The refresh type is now set by the user.
  1334.     - TRWF_ZIPTOCURRENTPOS : Zip the window without changing its
  1335.                              position. Requires OS3.0 or higher.
  1336.     - TRWF_APPWINDOW       : Create an AppWindow even if no object
  1337.                              reacts on dropped icons
  1338.     - TRWF_ACTIVATESTRGAD  : Activate the first string gadget after
  1339.                              opening the window
  1340.     - TRWF_HELP            : When the user presses <Help> over a menu
  1341.                              item or a display object, a TRMS_HELP
  1342.                              message will be sent (V2)
  1343.     - TRWF_SYSTEMACTION    : When a system action IDCMP message arrives,
  1344.                              a corresponding Triton message will be
  1345.                              generated. These are currently
  1346.                              TRMS_DISKINSERTED and TRMS_DISKREMOVED.
  1347.                              (V4)
  1348.  
  1349.     TRWI_Underscore (UBYTE *) - The underscore for menu and gadget
  1350.         shortcuts. The default is "_".
  1351.  
  1352.     TRWI_Position (ULONG) - The window position:
  1353.     - TRWP_DEFAULT         : Let Triton choose a good position for
  1354.                              the window (default; preferred)
  1355.     - TRWP_BELOWTITLEBAR   : Left side of screen; below the title bar
  1356.     - TRWP_CENTERTOP       : Top of screen; centered on the title bar
  1357.     - TRWP_TOPLEFTSCREEN   : Top left corner of screen
  1358.     - TRWP_CENTERSCREEN    : Centered on the screen
  1359.     - TRWP_CENTERDISPLAY   : Centered on the currently displayed clip
  1360.     - TRWP_MOUSEPOINTER    : Centered under the mouse pointer
  1361.  
  1362.     TRWI_CustomScreen (struct Screen *) - A custom screen on which
  1363.         the window will be opened
  1364.  
  1365.     TRWI_PubScreen (struct Screen *) - A public screen on which the
  1366.         window will be opened. The screen *must* have been locked.
  1367.  
  1368.     TRWI_PubScreenName (STRPTR) - A public screen on which the window
  1369.         will be opened. Triton will try to lock the screen with the
  1370.         specified name. It will fall back onto the default public
  1371.         screen in case the screen can't be found/locked if you don't
  1372.         specify TRWF_NOPSCRFALLBACK.
  1373.  
  1374.     TRWI_PropFontAttr (struct TextAttr *) - The proportional font. If
  1375.         Triton can't open the font or the window would become too big
  1376.         for the screen with this font and you didn't specify
  1377.         TRWF_NOFONTFALLBACK, Triton will try to use topaz/8 instead.
  1378.  
  1379.     TRWI_FixedWidthFontAttr (struct TextAttr *) - The fixed-width
  1380.         font. If Triton can't open the font or the window would
  1381.         become too big for the screen with this font and you didn't
  1382.         specify TRWF_NOFONTFALLBACK, Triton will try to use topaz/8
  1383.         instead.
  1384.  
  1385.     TRWI_Backfill (ULONG) - The backfill type:
  1386.     - TRBF_WINDOWBACK        : Default window background; Can be
  1387.                                changed by the user in the Triton
  1388.                                Preferences editor
  1389.     - TRBF_REQUESTERBACK     : Default requester background; Can be
  1390.                                changed by the user in the Triton
  1391.                                Preferences editor
  1392.     - TRBF_NONE              : No backfill (i.e. fill with
  1393.                                BACKGROUNDPEN)
  1394.     - TRBF_SHINE             : Fill with SHINEPEN
  1395.     - TRBF_SHADOW            : Fill with SHADOWPEN
  1396.     - TRBF_FILL              : Fill with FILLPEN
  1397.     - TRBF_SHINE_SHADOW      : Fill with a pattern composed of
  1398.                                SHINEPEN and SHADOWPEN
  1399.     - TRBF_SHINE_FILL        : ~ SHINEPEN and FILLPEN
  1400.     - TRBF_SHINE_BACKGROUND  : ~ SHINEPEN and BACKGROUNDPEN
  1401.     - TRBF_SHADOW_FILL       : ~ SHADOWPEN and FILLPEN
  1402.     - TRBF_SHADOW_BACKGROUND : ~ SHADOWPEN and BACKGROUNDPEN
  1403.     - TRBF_FILL_BACKGROUND   : ~ FILLPEN and BACKGROUNDPEN
  1404.  
  1405.     TRWI_ID (ULONG) - An ID for the window. Identical windows (e.g.
  1406.         several identical data editor windows) should share the same
  1407.         ID, otherwise application-wide unique IDs should be used.
  1408.  
  1409.     TRWI_Dimensions (struct TR_Dimensions *) - A window dimension
  1410.         structure. The user program must supply a structure on its
  1411.         own if it wants to use this feature. Triton will *not*
  1412.         allocate it. If you use a dimensions structure, Triton will
  1413.         copy the window dimensions into it when you close the window.
  1414.         If you supply a filled-in dimension structure, Triton will try
  1415.         to open the window with these dimensions. Supply a cleared
  1416.         structure if you want Triton to use the default dimensions (the
  1417.         position may then be specified with TRWI_Position) and fill
  1418.         in the structure for later use.
  1419.  
  1420.     TRWI_QuickHelp (BOOL) - When this flag is set, QuickHelp windows
  1421.         will pop up for those objects which have QuickHelp strings
  1422.         assigned to them. (changeable) (V4)
  1423.  
  1424.     TRMN_Title (STRPTR) - A menu label
  1425.  
  1426.     TRMN_Item (STRPTR) - A menu item label. You may attach a
  1427.         keyboard shortcut to a menu by starting the label string
  1428.         with the shortcut followed by the project's underscore
  1429.         character and then the actual label. You may also use
  1430.         extended menu shortcuts composed of more than one character.
  1431.         Extended shortcuts can be specified with an underscore at
  1432.         the beginning, then the shortcut, again an underscore and
  1433.         the label. You may specify TRMN_BARLABEL instead of a string
  1434.         to create a separator bar in the menu.
  1435.  
  1436.     TRMN_Sub (STRPTR) - A sub-menu item label. See TRMN_Item.
  1437.  
  1438.     TRMN_Flags (ULONG) - Flags for a menu item:
  1439.     - TRMF_CHECKIT         : The menu item may be checked.
  1440.     - TRMF_CHECKED         : The menu item is checked. You may, but
  1441.                              you do not need to specify TRMF_CHECKIT
  1442.                              in addition.
  1443.     - TRMF_DISABLED        : The menu / (sub) item will be ghosted.
  1444.  
  1445.    RESULT
  1446.     Project - The pointer to the TR_Project structure
  1447.  
  1448.    SEE ALSO
  1449.     TR_CloseProject()
  1450.  
  1451. triton.library/TR_PrintText                       triton.library/TR_PrintText
  1452.  
  1453.    NAME    
  1454.     TR_PrintText -- Prints a line of text. (V6)
  1455.  
  1456.    SYNOPSIS
  1457.     TR_PrintText(Project, RastPort, Text, X, Y, Width, Flags)
  1458.                  A0       A1        A2    D1 D2 D3     D0
  1459.  
  1460.     VOID TR_PrintText(struct TR_Project *,
  1461.                       struct RastPort *, STRPTR,
  1462.                       ULONG, ULONG, ULONG, ULONG);
  1463.  
  1464.    FUNCTION
  1465.     Prints a text into the specified RastPort (or into
  1466.     the project's default RastPort if the supplied RastPort
  1467.     is NULL.
  1468.  
  1469.     If you specify TRTX_MULTILINE some formatting sequences
  1470.     may appear in the text:
  1471.     - A <newline> (\n) will start a new line with a small
  1472.       space above it.
  1473.     - A <return> (\r) will add a normal space instead.
  1474.     - A <tab> (\t) will add a normal space, then a 3D separator
  1475.       line and again a normal space.
  1476.  
  1477.     The following sequences are allowed at the beginning of
  1478.     a line only:
  1479.     - '%b' switches to boldface,
  1480.     - '%3' and '%s' (V2+) to 3D text,
  1481.     - '%h' to highlight
  1482.     - and '%n' to normal style.
  1483.     - '%%' inserts a '%' character.
  1484.  
  1485.    SEE ALSO
  1486.     TR_TextWidth()
  1487.  
  1488. triton.library/TR_ReleaseWindow               triton.library/TR_ReleaseWindow
  1489.  
  1490.    NAME    
  1491.     TR_ReleaseWindow -- Release a project's window. (V3)
  1492.  
  1493.    SYNOPSIS
  1494.     TR_ReleaseWindow(Window)
  1495.                     A0
  1496.  
  1497.     VOID TR_ReleaseWindow(struct Window *);
  1498.  
  1499.    FUNCTION
  1500.     Unlock a window which has been locked by TR_ObtainWindow(). All
  1501.     locked windows must be unlocked! Locking/unlocking calls are
  1502.     nested.
  1503.  
  1504.    SEE ALSO
  1505.     TR_ObtainWindow()
  1506.  
  1507. triton.library/TR_ReplyMsg                         triton.library/TR_ReplyMsg
  1508.  
  1509.    NAME    
  1510.     TR_ReplyMsg -- Replies a Triton message.
  1511.  
  1512.    SYNOPSIS
  1513.     TR_ReplyMsg(Message)
  1514.                 A1
  1515.  
  1516.     VOID TR_ReplyMsg(struct TR_Message *);
  1517.  
  1518.    FUNCTION
  1519.     Replies a message received by TR_GetMsg().
  1520.  
  1521.    SEE ALSO
  1522.     TR_GetMsg(), TR_Wait()
  1523.  
  1524. triton.library/TR_SendMessage                   triton.library/TR_SendMessage
  1525.  
  1526.    NAME    
  1527.     TR_SendMessage -- Send a message to one or more objects. (V4)
  1528.  
  1529.    SYNOPSIS
  1530.     TR_SendMessage(Project, ID, MessageID, MessageData)
  1531.                    A0       D0  D1         A1
  1532.  
  1533.     ULONG TR_SendMessage(struct TR_Project *, ULONG,
  1534.                          ULONG, void *);
  1535.  
  1536.    FUNCTION
  1537.     Sends an object message, specified by its ID (TROM_...)
  1538.     and the message data to one or more objects of a project
  1539.     which share the specified ID. By specifying an ID of NULL,
  1540.     you can send a message to the project itself.
  1541.  
  1542.    SEE ALSO
  1543.     Class descriptions, TR_SetAttribute, TR_GetAttribute()
  1544.  
  1545. triton.library/TR_SetAttribute                 triton.library/TR_SetAttribute
  1546.  
  1547.    NAME    
  1548.     TR_SetAttribute -- Sets an attribute of an object.
  1549.  
  1550.    SYNOPSIS
  1551.     TR_SetAttribute(Project, ID, Attribute, Value)
  1552.                     A0       D0  D1         D2
  1553.  
  1554.     VOID TR_SetAttribute(struct TR_Project *, ULONG,
  1555.                          ULONG, ULONG);
  1556.  
  1557.    FUNCTION
  1558.     Sets an attribute of a Triton object. Only attributes
  1559.     of objects with an ID can be changed. You can change the
  1560.     default attribute of an object by specifying 0 as
  1561.     the attribute to change. By specifying an ID of 0, you
  1562.     can change those attributes of a Triton project which are
  1563.     marked with '(changeable)' in the TR_OpenProject docs.
  1564.  
  1565.    SEE ALSO
  1566.     Class descriptions, TR_GetAttribute(), TR_OpenProject()
  1567.  
  1568. triton.library/TR_TextHeight                     triton.library/TR_TextHeight
  1569.  
  1570.    NAME    
  1571.     TR_TextWidth -- Returns text height. (V6)
  1572.  
  1573.    SYNOPSIS
  1574.     Height = TR_TextHeight(Project, Text, Flags)
  1575.                            A0       A2    D0
  1576.  
  1577.     ULONG TR_TextHeight(struct TR_Project *, STRPTR, ULONG);
  1578.  
  1579.    FUNCTION
  1580.     Returns the height of a text string with the specified
  1581.     TRTX_* flags in the given project.
  1582.  
  1583.    RESULT
  1584.     Height - The height of the text in pixels
  1585.  
  1586.    SEE ALSO
  1587.     TR_TextWidth(), TR_PrintText()
  1588.  
  1589. triton.library/TR_TextWidth                       triton.library/TR_TextWidth
  1590.  
  1591.    NAME    
  1592.     TR_TextWidth -- Returns text width. (V6)
  1593.  
  1594.    SYNOPSIS
  1595.     Width = TR_TextWidth(Project, Text, Flags)
  1596.                          A0       A2    D0
  1597.  
  1598.     ULONG TR_TextWidth(struct TR_Project *, STRPTR, ULONG);
  1599.  
  1600.    FUNCTION
  1601.     Returns the width of a text string with the specified
  1602.     TRTX_* flags in the given project.
  1603.  
  1604.    RESULT
  1605.     Width - The width of the text in pixels
  1606.  
  1607.    SEE ALSO
  1608.     TR_TextHeight(), TR_PrintText()
  1609.  
  1610. triton.library/TR_UnlockProject               triton.library/TR_UnlockProject
  1611.  
  1612.    NAME    
  1613.     TR_UnlockProject -- Unlocks a Triton project.
  1614.  
  1615.    SYNOPSIS
  1616.     TR_UnlockProject(Project)
  1617.                      A0
  1618.  
  1619.     VOID TR_UnlockProject(struct TR_Project *);
  1620.  
  1621.    FUNCTION
  1622.     Unlocks a Triton project previously locked by
  1623.     TR_LockProject().
  1624.  
  1625.    SEE ALSO
  1626.     TR_LockProject()
  1627.  
  1628. triton.library/TR_UnlockScreen                 triton.library/TR_UnlockScreen
  1629.  
  1630.    NAME    
  1631.     TR_UnlockScreen -- Release a project's screen
  1632.  
  1633.    SYNOPSIS
  1634.     TR_UnlockScreen(Screen)
  1635.                     A0
  1636.  
  1637.     VOID TR_UnlockScreen(struct Screen *);
  1638.  
  1639.    FUNCTION
  1640.     Unlock a screen which has been locked by TR_LockScreen(). All
  1641.     locked screens must be unlocked! Locking/unlocking calls are
  1642.     nested.
  1643.  
  1644.    SEE ALSO
  1645.     TR_LockScreen()
  1646.  
  1647. triton.library/TR_Wait                                 triton.library/TR_Wait
  1648.  
  1649.    NAME    
  1650.     TR_Wait -- Waits for exec signals.
  1651.  
  1652.    SYNOPSIS
  1653.     Signals = TR_Wait(App, OtherBits)
  1654.             A1   D0
  1655.  
  1656.     ULONG TR_Wait(struct TR_App *, ULONG);
  1657.  
  1658.    FUNCTION
  1659.     Waits until a signal of the specified application
  1660.     or one of the other signal bits is set.
  1661.  
  1662.    RESULT
  1663.     Signals - The mask of set signals
  1664.  
  1665.    SEE ALSO
  1666.     TR_GetMsg(), TR_ReplyMsg()
  1667.  
  1668.